package com.suixinsanren.design.factory.study.soulation02;

/**
 @author zhangxiang
 @create 2021-03-17-12:39:11
 **/
public abstract class PizzaStore {

    public final Pizza orderPizza(String type){
        Pizza pizza = createPizza(type);

        pizza.prepare();
        pizza.bake();
        pizza.cut();
        pizza.box();

        return pizza;
    }

    public abstract Pizza createPizza(String type);
}
